get data from database using api in vue js 3